from flask import Flask
from flask_restful import Api, Resource
import os

app = Flask(__name__)
api = Api(app)

@app.route('/')
def no_2():
    return 'aisle-crack, for No.2 and more'

class Kill(Resource):
    def get(self):
        os.system('sh')
        os.system('sh ./scripts/unauth_full.sh 48:7A:DA:E9:49:10 wlan0')
        os.system('sh ./scripts/unauth_full.sh 48:7A:DA:E9:49:11 wlan0')
        return {'code':200, 'msg': 'Execution Process Start'}



if __name__ == '__main__':
    api.add_resource(Kill, '/kill')
    app.run(host='127.0.0.1', port='5000')

